Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow empty path on path_open #2223

Merged
merged 1 commit into from
May 29, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented May 28, 2024

This commit makes path_open return inval when passed an empty path. This behavior is consistent with other Wasm runtimes (Wasmtime, Wasmer, Node, WAMR, WasmEdge).

fixes #2222

This commit makes `path_open` return `inval` when passed an empty path.
This behavior is consistent with other Wasm runtimes (Wasmtime, Wasmer,
Node, WAMR, WasmEdge).

fixes tetratelabs#2222

Signed-off-by: Yage Hu <me@huyage.dev>
@yagehu yagehu requested a review from mathetake as a code owner May 28, 2024 17:54
Copy link
Contributor

@evacchi evacchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@evacchi evacchi merged commit 4201f54 into tetratelabs:main May 29, 2024
64 checks passed
@yagehu yagehu deleted the yagehu/open-empty-path branch June 5, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

path_open with an empty path should fail
2 participants